#!/usr/bin/python
import socket ,sys

port = 70
host = raw_input("input host> ")
filename = raw_input("input filename> ")

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((host,port))

s.sendall(filename + "\r\n")

while True :
	buf = s.recv(2048)
	if not  len(buf):
		break
	sys.stdout.write(buf)
